package com.three.lab.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class NewFriendBean implements Parcelable {

    private int resId;
    private String name;

    public NewFriendBean() {
    }

    public NewFriendBean(int resId, String name) {
        this.resId = resId;
        this.name = name;
    }

    protected NewFriendBean(Parcel in) {
        resId = in.readInt();
        name = in.readString();
    }

    public static final Creator<NewFriendBean> CREATOR = new Creator<NewFriendBean>() {
        @Override
        public NewFriendBean createFromParcel(Parcel in) {
            return new NewFriendBean(in);
        }

        @Override
        public NewFriendBean[] newArray(int size) {
            return new NewFriendBean[size];
        }
    };

    public int getResId() {
        return resId;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(resId);
        dest.writeString(name);
    }
}
